# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=jose
pkgver=11
pkgrel=1
pkgdesc="C-language implementation of Javascript Object Signing and Encryption"
url="https://github.com/latchset/jose"
license="Apache-2.0"
arch="all"
makedepends="meson zlib-dev jansson-dev openssl1.1-compat-dev asciidoc"
subpackages="$pkgname-doc lib$pkgname:libs $pkgname-dev"
source="https://github.com/latchset/jose/releases/download/v$pkgver/jose-$pkgver.tar.xz"

build() {
	abuild-meson . build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	meson test --no-rebuild -v -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
61aa7aad85694e693f451e328e81dc7d84d4bd7662152213f1ef45fd010db7180a93d67398888fc9476ee04e4eb7dd7483cfcebc47d5773cfe04b8b5f3786006  jose-11.tar.xz
"
